package com.yl.chainStore.services.pay

import com.yl.chainStore.entity.pay.PayCustomerOrderItemDiscountRule
import com.yl.chainStore.entity.pay.PayOrderDiscountRule
import com.yl.common.control.ResponseBody
import java.util.*

/**
 * 订单规则
 */
interface IPayOrderDiscountRuleService {

	/**
	 * 删除
	 */
	fun del(id:Long): ResponseBody

	/**
	 * 重设时间
	 */
	fun resetTime(id:Long, startTime: Date, endTime: Date): ResponseBody

	/**
	 * 打开
	 */
	fun openRule(id:Long): ResponseBody

	/**
	 * 关闭
	 */
	fun closeRule(id:Long): ResponseBody

	/**
	 * 修改基础信息（目前名字）
	 */
	fun updateInfo(rule: PayOrderDiscountRule): ResponseBody

	/**
	 * 修改规则
	 */
	fun updateRule(id: Long,rule:Any): ResponseBody
}
